package com.kingint.mbg.ser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工单总表与接单人中间表（为了首页查询方便做冗余）
 * </p>
 *
 * @author wxh
 * @since 2021-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SerReceiveWorkMiddle对象", description="工单总表与接单人中间表（为了首页查询方便做冗余）")
public class SerReceiveWorkMiddle implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "总单表id")
    @TableField("work_id")
    private Integer workId;

    @ApiModelProperty(value = "接单人id")
    @TableField("receive_user_id")
    private Long receiveUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "状态（0，正常，1，删除）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("是否更换（0，否，1，是）涉及到完成率")
    @TableField("is_replace")
    private Integer isReplace;

    @ApiModelProperty("是否超时（0，否，1，是）涉及到及时率")
    @TableField("is_time_out")
    private Integer isTimeOut;

}
